package com.hiyee.pay.repository;

import com.hiyee.pay.mapper.PaymentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 支付方式数据仓储类
 *
 * @author WangBin
 */
@Repository
public class PaymentRepo {

    @Autowired
    private PaymentMapper paymentMapper;

    /**
     * 获取支付方式列表
     *
     * @return List<PaymentRepo>
     */
    public List<PaymentRepo> getPayment() {
        List<PaymentRepo> paymentRepoList = paymentMapper.getPayment();
        return paymentRepoList;
    }
}
